# -*- coding: utf-8 -*-
"""
@Time : 2024/2/23 8:37 PM
@Author: imamhusan
@Des: 轮播图模型
"""
from tortoise import Model, fields


class Banner(Model):
    image = fields.CharField(max_length=512, description='轮播图')
    state = fields.IntField(default=1, description='状态')
    sort = fields.IntField(default=0, description='排序')
    target = fields.IntField(default=0, description='目标ID')
    create_time = fields.DatetimeField(auto_now_add=True, description='创建时间')
    update_time = fields.DatetimeField(auto_now=True, description='更新时间')

    class Meta:
        table = 'oz_banner'
        table_description = '轮播图表'

